package com.financing.platform.service;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.NewsDTO;

public interface INewsService extends IBaseService {
	
	/**
	 * 
	* @Title: addNews 
	* @Description: 添加资讯
	* @param   newsDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int addNews(NewsDTO newsDTO) throws SQLException;
	
	/**
	 * 
	* @Title: queryNewsList 
	* @Description: 查询资讯列表
	* @param   newsDTO
	* @return List<NewsDTO>   
	* @throws
	 */
	public List<NewsDTO> queryNewsList(NewsDTO newsDTO);
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: queryNewsListCount
	* @Description: 查询资讯列表count
	* @param  newsDTO
	* @return List<NewsDTO>   
	* @throws
	 */
	public int queryNewsListCount(NewsDTO newsDTO) throws SQLException;
	/**
	 * 
	* @Title: deleteNews 
	* @Description: 删除资讯信息
	* @param   ids
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int deleteNews(String[] ids) throws SQLException;
	
	/**
	 * 
	 * @Title: updateNews
	 * @Description: 更新咨询信息 
	 * @param @param newsDTO
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int updateNews(NewsDTO newsDTO) throws SQLException;
}
